﻿namespace Traffic.Entity;

/// <summary>
/// 支付请求
/// </summary>
public partial class PayRequest
{
    public int Id { get; set; }

    /// <summary>
    /// 企业ID   1：候机楼  2：运通
    /// </summary>
    public int BusinessId { get; set; }

    /// <summary>
    /// 是否在线支付   0：否  1：是（默认）
    /// </summary>
    public bool OnlinePay { get; set; }

    /// <summary>
    /// 支付提供商
    /// </summary>
    public string ProviderName { get; set; } = null!;

    /// <summary>
    /// 支付商英文
    /// </summary>
    public string EngName { get; set; } = null!;

    /// <summary>
    /// 订单ID  对应OrderList.ID
    /// </summary>
    public int OrderId { get; set; }

    /// <summary>
    /// 订单号 对应OrderList.OrderNum
    /// </summary>
    public string OrderNum { get; set; } = null!;

    /// <summary>
    /// 用户实际支付金额
    /// </summary>
    public decimal PayAmt { get; set; }

    /// <summary>
    /// 支付金额
    /// </summary>
    public decimal PayMoney { get; set; }

    /// <summary>
    /// 退款额
    /// </summary>
    public decimal RefundMoney { get; set; }

    /// <summary>
    /// 状态 默认1：正常未支付   0：作废   1：正常未支付   2：已支付成功  3:已源路退回
    /// </summary>
    public int Status { get; set; }

    /// <summary>
    /// 创建时间
    /// </summary>
    public DateTime CreateTime { get; set; }

    /// <summary>
    /// 完成支付时间
    /// </summary>
    public DateTime? PayTime { get; set; }

    /// <summary>
    /// 退款时间
    /// </summary>
    public DateTime? RefundTime { get; set; }

    /// <summary>
    /// 支付方式   微信支付、支付宝
    /// </summary>
    public string? PayStyle { get; set; }

    /// <summary>
    /// 交易流水号
    /// </summary>
    public string? PayNumbers { get; set; }

    /// <summary>
    /// 操作备注
    /// </summary>
    public string? Remarks { get; set; }

    /// <summary>
    /// 支付渠道信息
    /// </summary>
    public string? PayInfo { get; set; }

    /// <summary>
    /// 退款信息
    /// </summary>
    public string? RefundInfo { get; set; }
}
